package com.ericsson.rm.model;

import java.io.Serializable;

import javax.persistence.*;

import java.util.List;


/**
 * The persistent class for the RESOURCE_DETAIL database table.
 * 
 */
@Entity
/*@NamedQueries({
	@NamedQuery(name ="ResourceDetail.findById" ,query="SELECT r.resourceId from ResourceDetail r WHERE r.skillId=:skillId")
})*/
@Table(name="RP_RESOURCE_DETAIL")
public class ResourceDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="RESOURCE_ID")
	private String resourceId;

	@Column(name="EMAIL_ID")
	private String emailId;

	@Column(name="FIRST_NAME")
	private String firstName;

	@Column(name="LAST_NAME")
	private String lastName;

	@Column(name="PHONE_NO")
	private String phoneNo;

	@Column(name="LINE_MANAGER_SIGNUM")
	private String lineManagerSignum;
	
	private String signum;
	
	//bi-directional many-to-one association to ResourceDetail
	@ManyToOne
	@JoinColumn(name="JOB_STAGE")
	private RoleDetail roleDetail;

	//bi-directional many-to-one association to ProjectResourceDetail
	@OneToMany(mappedBy="resourceDetail")
	private List<ProjectResourceDetail> projectResourceDetails;

	//bi-directional many-to-one association to ResourceSkillDetail
	@OneToMany(mappedBy="resourceDetail")
	private List<ResourceSkillDetail> resourceSkillDetails;

	public ResourceDetail() {
	}

	public String getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public String getEmailId() {
		return this.emailId;
	}

	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}

	public String getFirstName() {
		return this.firstName;
	}

	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return this.lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getPhoneNo() {
		return this.phoneNo;
	}

	public void setPhoneNo(String phoneNo) {
		this.phoneNo = phoneNo;
	}

	public String getLineManagerSignum() {
		return this.lineManagerSignum;
	}

	public void setLineManagerSignum(String lineManagerSignum) {
		this.lineManagerSignum = lineManagerSignum;
	}

	public String getSignum() {
		return this.signum;
	}

	public void setSignum(String signum) {
		this.signum = signum;
	}

	public List<ProjectResourceDetail> getProjectResourceDetails() {
		return this.projectResourceDetails;
	}

	public void setProjectResourceDetails(List<ProjectResourceDetail> projectResourceDetails) {
		this.projectResourceDetails = projectResourceDetails;
	}

	public List<ResourceSkillDetail> getResourceSkillDetails() {
		return this.resourceSkillDetails;
	}

	public void setResourceSkillDetails(List<ResourceSkillDetail> resourceSkillDetails) {
		this.resourceSkillDetails = resourceSkillDetails;
	}

	public RoleDetail getRoleDetail() {
		return roleDetail;
	}

	public void setRoleDetail(RoleDetail roleDetail) {
		this.roleDetail = roleDetail;
	}

}